Skip to content

Conversation

@simonreise
Copy link
Contributor

All the other segmentation losses have ignore_index parameter, and JaccardLoss does not. The ignore_index logic was copied from Dice Loss

Copy link
Collaborator

@qubvel qubvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@qubvel qubvel merged commit 05db6b5 into qubvel-org:main Jun 4, 2025
16 checks passed
@codecov
Copy link

codecov bot commented Jun 4, 2025

Codecov Report

❌ Patch coverage is 37.50000% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
segmentation_models_pytorch/losses/jaccard.py 37.50% 10 Missing ⚠️
Files with missing lines Coverage Δ
segmentation_models_pytorch/losses/jaccard.py 73.01% <37.50%> (-12.70%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@simonreise simonreise deleted the ignore-index-jaccard-loss branch June 4, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants